last minute (Adjective) — Just before a deadline; at the last minute. ex. "last-minute arrangements"
last minute (Noun) — The latest possible moment. ex. "at the last minute the government changed the rules"